﻿using System;
using System.Xml;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Data.Realm
{
    /// <summary>
    /// Stub of a class representing single field. 
    /// <!--It'size a temporary version that should be checked and (probably) fixed-->
    /// </summary>
    [Serializable]
    [XmlType("f")]
    public class Field
    {
        [XmlIgnore()]
        public const int POLE_PUSTE = 0;
        [XmlIgnore()]
        public const int POLE_ZASIANE = 1;
        [XmlIgnore()]
        public const int POLE_GOTOWE = 2;

        [XmlAttribute("p_name")]
        public string plant_name;
        [XmlAttribute("l_class")]
        public string land_class;
        [XmlAttribute("status")]
        public int status;
        [XmlAttribute("drive_cost")]
        public int drive_cost;

        [XmlIgnore()]
        public DateTime planting_date;
        [XmlIgnore()]
        public DateTime growing_date;
        [XmlIgnore()]
        public DateTime last_visited;

        [XmlIgnore()]
        public int x;
        [XmlIgnore()]
        public int y;
    }
}
